import _ from 'lodash'
import './style.css'
import './app.styl'
import Icon from './logo_108.jpg'
import printMe from './print'

function component() {
    const element = document.createElement('div')
    const myIcon = new Image()
    const btn = document.createElement('button')
    myIcon.src =  Icon
    element.innerHTML = _.join(['Hello', 'webpack'], ' ')
    element.classList.add('hello')
    element.appendChild(myIcon)
    btn.innerHTML = 'Click me and check the console!'
    btn.onclick = printMe
    element.appendChild(btn)
    return element
}

document.body.appendChild(component())
